﻿<controls:ChildWindow x:Name="childWindow" x:Class="Fractals.SelectColoringWindow"
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
           xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
					  xmlns:Controls="clr-namespace:ArgusControls;assembly=ArgusControls"
					  xmlns:ColoredControls="clr-namespace:ArgusControls.ThemeControls;assembly=ArgusControls"
           Width="400" Height="300" 
           Title="{Binding Resource.SelectColoringWindowTitle, Mode=OneWay, Source={StaticResource LocalizedStrings}}" Background="Black" Foreground="White">
	<Grid x:Name="LayoutRoot">
		<ScrollViewer Margin="0,0,0,32" HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto">
			<controls:TreeView x:Name="treeView" HorizontalAlignment="Left" Margin="5" VerticalAlignment="Top" Background="{Binding Background, ElementName=childWindow}" Foreground="{Binding Foreground, ElementName=childWindow}" SelectedItemChanged="treeView_SelectedItemChanged"/>
		</ScrollViewer>
		<StackPanel Orientation="Horizontal" HorizontalAlignment="Right" VerticalAlignment="Bottom" Margin="0,0,5,5">
			<ColoredControls:ThemeButton x:Name="bCancel" Content="{Binding Resource.SelectColoringWindowCancel, Mode=OneWay, Source={StaticResource LocalizedStrings}}" Click="bCancel_Click"/>
			<ColoredControls:ThemeButton x:Name="bOK" IsEnabled="False" Content="{Binding Resource.SelectColoringWindowOK, Mode=OneWay, Source={StaticResource LocalizedStrings}}" Margin="5,0,0,0" Click="bOK_Click"/>
		</StackPanel>
	</Grid>
</controls:ChildWindow>